package com.jzmy.site.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.plugins.Page;
import com.jzmy.site.dao.OrganizationRolesDao;
import com.jzmy.site.entity.OrganizationRoles;
import com.jzmy.site.entity.vo.OrgRolesListVo;
import com.jzmy.site.service.OrganizationRolesService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author mengzhichao
 * @create 2022-08-22-14:06
 */
@Service
public class OrganizationRolesServiceImpl extends ServiceImpl<OrganizationRolesDao, OrganizationRoles> implements OrganizationRolesService {

    @Override
    public Page<OrgRolesListVo> selectListPage(int current, int number, Map map) {
        // 新建分页
        Page<OrgRolesListVo> page = new Page<OrgRolesListVo>(current, number);
        return page.setRecords(baseMapper.dyGetUserList(page,map));
    }
}
